package com.dailyblue.java.design.适配器模式;

public class PowerAdapter implements PhoneCharge {

    private Power power = new Power();

    @Override
    public int output5v() {
        int dianya = power.output();
        // 转换
        int result = 5;
        System.out.println("将" + dianya + "V转换成了" + result + "V");
        return result;
    }
}
